Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vagrant support for ircb #94

Open
wants to merge 5 commits into
base: api_fixes
Choose a base branch
from

Conversation

farhaanbukhsh
Copy link
Contributor

This commits add vagrant support for ircb, this is used to make
development of ircb easy

Signed-off-by: Farhaan Bukhsh(fhackdroid) [email protected]

This commits add vagrant support for ircb, this is used to make
development of ircb easy

Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
This commit adds Vagrantfile and ansible to add provision to Vagrant image

Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
Vagrantfile Outdated
ansible.playbook = "ansible/vagrant-playbook.yml"
end
config.vm.provision "shell", inline: "cd /home/vagrant/devel && sudo python3 setup.py develop"
config.vm.provision "shell", inline: "sudo systemctl start redis.service"
Copy link
Contributor

@sayanchowdhury sayanchowdhury Mar 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can migrate this to role?!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for redis I have a handler written

Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
RUN dnf install -y python2-devel python-setuptools python-nose py-bcrypt python-alembic \
python-pip python3-devel openssl-devel redis python3-pip

RUN pip3.4 install Flask==0.10.1 Flask-SQLAlchemy==2.0 Flask-User==0.6.11 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not install from requirements.txt?


EXPOSE 9000 10000 6379

CMD ["redis-service"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why start redis-service? Won't it be better to have ircb as entrypoint and ["run", "allinone"] as default command? This will open up possible usecases like:

docker run ircb run stores
docker run ircb run bouncer

and so on ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants